import face_api

image1 = face_api.load_image_file("image/001.jpg")
image2 = face_api.load_image_file("image/001.jpg")

unknown_face_encode = face_api.face_encodings(image1, num_jitters=3)[0]
know_face_encode = face_api.face_encodings(image2, num_jitters=3)[0]
known_faces = [
    know_face_encode
]

face_distances = face_api.face_distance(known_faces, unknown_face_encode)
results = ''
for i, face_distance in enumerate(face_distances):
    results = "{:.2} ".format(face_distance)

# results = face_api.compare_faces(known_faces, unknown_face_encode)
print(results)
